package com.risetechnology.common;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.StateListDrawable;

public class CheckBoxBackground extends StateListDrawable {

	public CheckBoxBackground(Context context, 
			int checkedDrawableId, int defaultDrawableId) {
		// Checked drawable
		Drawable pressedDrawable = context.getResources().getDrawable(
				checkedDrawableId);
		this.addState(new int[] { android.R.attr.state_checked },
				pressedDrawable);

		// Default drawable
		Drawable defaultDrawable = context.getResources().getDrawable(
				defaultDrawableId);
		this.addState(new int[] {}, defaultDrawable);

	}

}
